package cn.tedu;

import java.sql.Connection;
import java.sql.SQLException;
import java.sql.Statement;

public class Demo02 {
    public static void main(String[] args) {
        try (Connection conn = DBUtils.getConn()){
            Statement s = conn.createStatement();
            s.executeUpdate("INSERT  INTO car VALUES (NULL ,'比亚迪汉','轿车',250000),(NULL ,'特斯拉毛豆3','轿车',2200000),(NULL ,'蔚来ET7','轿车',5200000)");
            System.out.println("添加完成!");
        } catch (SQLException throwables) {
            throwables.printStackTrace();
        }
    }
}
